/*
 * buzzer_hal.c
 *
 *  Created on: Sep 19, 2013
 *      Author: Ken Arok
 */

#include "config_board.h"

#if BOARD_2_1_USED

#include "board.h"
#include "gpio.h"
#include "buzzer_hal.h"

/** \brief Turn BST-1295C Buzzer ON.
 */
static void bst1295c_buzzer_on(void)
{
	gpio_set_pin_low(BUZZER_GPIO);
}

/** \brief Turn BST-1295C Buzzer OFF.
 */
static void bst1295c_buzzer_off(void)
{
	gpio_set_pin_high(BUZZER_GPIO);
}

/* ---------------------------------------------------------------------- */
void buzzer_on(void)
{
	bst1295c_buzzer_on();
}

void buzzer_off(void)
{
	bst1295c_buzzer_off();
}

#endif /* BOARD_2_1_USED */
